﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="color-annotation pull-left">
  <span><label class="group"></label>团课</span>
  <span><label class="individual"></label>1v1</span>
  <span><label class="year"></label>年卡</span>
  <span><label class="rest"></label>休息</span>
  <span><label class="experience"></label>体验课</span>
  <span><label class="duty"></label>值班</span>
  <span><label class="business"></label>公出</span>
  <span><label class="conference"></label>会议</span>
  <span><label class="training"></label>培训</span>
</div>

<div class="btn-group pull-right" role="group" aria-label="..." style="margin-left: 30px;">
  <a href="${ctx.host}/schedules" class="btn btn-default">教练</a>
  <a href="${ctx.host}/schedules?coachview=false" class="btn btn-success">日期</a>
</div>

<div class="btn-group pull-right">
  <a href="${ctx.host}/schedules/search${not empty queryString ? '?' : ''}${queryString}" data-target="#" data-toggle="modal" class="btn btn-default x-btn btn-shadow btn-shadow-default init-button hide">
    <i class="glyphicon glyphicon-search"></i>&nbsp;&nbsp;过滤查询
  </a>
  <c:if test="${currentPrincipal.siteManager or currentPrincipal.siteServer or currentPrincipal.admin}">
    <a href="${ctx.host}/schedules/export-view?view=day" data-target="#export-schedule" data-toggle="modal" class="btn btn-default x-btn btn-shadow btn-shadow-default init-button hide">导出课程表</a>
  </c:if>
  </div>
  
</div>

<%--
  <div>
  <c:choose>
    <c:when test="${refer == 'search'}">
      <jsp:include page="/WEB-INF/jsps/course/schedule/schedule-page.jsp">
        <jsp:param name="url" value="schedules/search" />
        <jsp:param name="queryString" value="${queryString}" />
      </jsp:include>
    </c:when>
    <c:otherwise>
      <jsp:include page="/WEB-INF/jsps/course/schedule/schedule-page.jsp">
        <jsp:param name="url" value="schedules" />
        <jsp:param name="queryString" value="${queryString}" />
      </jsp:include>
    </c:otherwise>
  </c:choose>
</div> --%>
